package com.siyu.Controller;


import com.siyu.model.Student;
import com.siyu.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author BrandController
 * @Description 类中文描述
 * @Date 2024/12/9
 **/
@RestController
@RequestMapping("student")
public class StudentController {

    @Autowired
    private StudentService studentService;

    @GetMapping("list")
    public List<Student> getStudent(){
        return studentService.getStudents();
    }
}